package com.sinosoft.hydra.um.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * Created by Administrator on 2016/1/21.
 */
public class CaToken extends UsernamePasswordToken {

    public CaToken(String userName, String originData, String signedData, String cert, String certKey) {
        this.setUsername(userName);
        this.originData = originData;
        this.signedData = signedData;
        this.cert = cert;
        this.certKey = certKey;
    }

    /**
     * 源数据
     */
    private String originData; //源数据
    /**
     * 密文
     */
    private String signedData; //密文验证
    /**
     * 证书序号
     */
    private String cert;  //证书序号
    /**
     * 公钥
     */
    private String certKey;   //公钥

    public String getOriginData() {
        return originData;
    }

    public void setOriginData(String originData) {
        this.originData = originData;
    }

    public String getSignedData() {
        return signedData;
    }

    public void setSignedData(String signedData) {
        this.signedData = signedData;
    }

    public String getCert() {
        return cert;
    }

    public void setCert(String cert) {
        this.cert = cert;
    }

    public String getCertKey() {
        return certKey;
    }

    public void setCertKey(String certKey) {
        this.certKey = certKey;
    }
}
